package com.hmall.common.config;

import feign.Logger;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;

@EnableFeignClients("com.hmall.common.client")
public class DefaultFeignConfiguration {
    /**
     * 配置日志对象,并设置日志级别为BASIC(仅记录请求的方法，URL以及响应状态码和执行时间)
     * @return
     */
    @Bean
    public Logger.Level level() {
        return Logger.Level.BASIC;
    }
}
